﻿namespace DiplomaWeb.Utils.PasswordsUtils
{
    public class SimplePasswordUtil : IPasswordsUtil
    {
        #region IPasswordsUtil Members

        public bool ValidatePassword(string password, string encryptedPassword)
        {
            return password.Trim().ToLower().Equals(encryptedPassword.Trim().ToLower());
        }

        public string EncryptPassword(string password)
        {
            return password.Trim();
        }

        #endregion
    }
}